revSetSpeechSpeed
Type
command
Summary
Sets the speed at which the revSpeak command speaks.
Syntax
revSetSpeechSpeed <wordsPerMinute>
Description
Use the revSetSpeechSpeed command to speed up or slow down speech.
The greater the wordsPerMinute, the faster the speech. (A normal speech rate for English is approximately 150 words per minute.)
The speed specified by the revSetSpeechSpeed command is used for all speeches following the command during the current session. If the computer is already speaking when you execute the command, the new speed affects the current speech.
The revSetSpeechSpeed command is part of the Speech library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "Speech" library checkbox is checked.
Parameters
Name | Type | Description |
---|---|---|
wordsPerMinute | integer | An integer between 1 and 300. |
Examples
revSetSpeechSpeed 30
revSetSpeechSpeed field "WPM"
Value
Name | Type | Description |
---|---|---|
the result | If text to speech is not available on the current system, the revSetSpeechSpeed command sets the result function to an error message. |
Related
control structure: function
function: revGetSpeechVolume, result
glossary: Standalone Application Settings, command, standalone application, execute, text to speech, LiveCode custom library
library: Speech library
command: revSetSpeechPitch, revSetSpeechVoice, revSpeak, revSetSpeechProvider
Compatibility and Support
Introduced
LiveCode 2.0
OS
mac
windows
Platforms
desktop
server